package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_ATTEND_PLAN_ID;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_ATTEND_STATUS;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_COMPANY_ID;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_COMPANY_NAME;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_DAILY;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_DAILY_SUMMARY_ID;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_DEPT_ID;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_DEPT_NAME;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_EARLIEST_TIME;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_EMP_INFO_ID;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_EMP_INFO_NAME;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_GO_OUT_HOURS;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_GO_OUT_LOCATION;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_HIS_ATTEND_STATUS;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_IS_GO_OUT;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_IS_USED;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_LATEST_TIME;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_MINUTES;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_MONTHLY;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_OVERTIME_HOURS;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_OVERTIME_STATUS;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_PUNCH_COUNTS;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_SIGN_IN_LOCATION;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_SIGN_OUT_LOCATION;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_WORK_TIME_MINUTE;
import static org.jsola.hr.example.AttendPunchDailyReportExample.E_YEARLY;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_ATTEND_PLAN_ID_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_COMPANY_NAME_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_DAILY_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_DAILY_SUMMARY_ID_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_DEPT_ID_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_DEPT_NAME_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_EARLIEST_TIME_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_EMP_INFO_ID_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_EMP_INFO_NAME_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_GO_OUT_LOCATION_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_LATEST_TIME_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_MONTHLY_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_SIGN_IN_LOCATION_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_SIGN_OUT_LOCATION_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.M_YEARLY_MAX;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_ATTEND_PLAN_ID;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_ATTEND_STATUS;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_COMPANY_ID;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_COMPANY_NAME;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_DAILY;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_DAILY_SUMMARY_ID;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_DEPT_ID;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_DEPT_NAME;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_EARLIEST_TIME;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_EMP_INFO_ID;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_EMP_INFO_NAME;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_GO_OUT_HOURS;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_GO_OUT_LOCATION;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_HIS_ATTEND_STATUS;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_IS_GO_OUT;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_IS_USED;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_LATEST_TIME;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_MINUTES;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_MONTHLY;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_OVERTIME_HOURS;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_OVERTIME_STATUS;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_PUNCH_COUNTS;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_SIGN_IN_LOCATION;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_SIGN_OUT_LOCATION;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_WORK_TIME_MINUTE;
import static org.jsola.hr.example.AttendPunchDailyReportExample.N_YEARLY;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【考勤打卡日报表】的参数")
@Data
public class AttendPunchDailyReportUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_DAILY_SUMMARY_ID, example = E_DAILY_SUMMARY_ID)
    @Length(max = 32, message = M_DAILY_SUMMARY_ID_MAX)
    private String dailySummaryId;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_COMPANY_NAME, example = E_COMPANY_NAME)
    @Length(max = 100, message = M_COMPANY_NAME_MAX)
    private String companyName;

    @ApiModelProperty(notes = N_DEPT_ID, example = E_DEPT_ID)
    @Length(max = 32, message = M_DEPT_ID_MAX)
    private String deptId;

    @ApiModelProperty(notes = N_DEPT_NAME, example = E_DEPT_NAME)
    @Length(max = 100, message = M_DEPT_NAME_MAX)
    private String deptName;

    @ApiModelProperty(notes = N_ATTEND_PLAN_ID, example = E_ATTEND_PLAN_ID)
    @Length(max = 32, message = M_ATTEND_PLAN_ID_MAX)
    private String attendPlanId;

    @ApiModelProperty(notes = N_EMP_INFO_ID, example = E_EMP_INFO_ID)
    @Length(max = 32, message = M_EMP_INFO_ID_MAX)
    private String empInfoId;

    @ApiModelProperty(notes = N_EMP_INFO_NAME, example = E_EMP_INFO_NAME)
    @Length(max = 50, message = M_EMP_INFO_NAME_MAX)
    private String empInfoName;

    @ApiModelProperty(notes = N_YEARLY, example = E_YEARLY)
    @Length(max = 10, message = M_YEARLY_MAX)
    private String yearly;

    @ApiModelProperty(notes = N_MONTHLY, example = E_MONTHLY)
    @Length(max = 10, message = M_MONTHLY_MAX)
    private String monthly;

    @ApiModelProperty(notes = N_DAILY, example = E_DAILY)
    @Length(max = 10, message = M_DAILY_MAX)
    private String daily;

    @ApiModelProperty(notes = N_SIGN_IN_LOCATION, example = E_SIGN_IN_LOCATION)
    @Length(max = 255, message = M_SIGN_IN_LOCATION_MAX)
    private String signInLocation;

    @ApiModelProperty(notes = N_SIGN_OUT_LOCATION, example = E_SIGN_OUT_LOCATION)
    @Length(max = 255, message = M_SIGN_OUT_LOCATION_MAX)
    private String signOutLocation;

    @ApiModelProperty(notes = N_IS_GO_OUT, example = E_IS_GO_OUT)
    private Integer isGoOut;

    @ApiModelProperty(notes = N_GO_OUT_LOCATION, example = E_GO_OUT_LOCATION)
    @Length(max = 255, message = M_GO_OUT_LOCATION_MAX)
    private String goOutLocation;

    @ApiModelProperty(notes = N_GO_OUT_HOURS, example = E_GO_OUT_HOURS)
    private BigDecimal goOutHours;

    @ApiModelProperty(notes = N_IS_USED, example = E_IS_USED)
    private Integer isUsed;

    @ApiModelProperty(notes = N_ATTEND_STATUS, example = E_ATTEND_STATUS)
    private Integer attendStatus;

    @ApiModelProperty(notes = N_OVERTIME_HOURS, example = E_OVERTIME_HOURS)
    private BigDecimal overtimeHours;

    @ApiModelProperty(notes = N_EARLIEST_TIME, example = E_EARLIEST_TIME)
    @Length(max = 10, message = M_EARLIEST_TIME_MAX)
    private String earliestTime;

    @ApiModelProperty(notes = N_LATEST_TIME, example = E_LATEST_TIME)
    @Length(max = 10, message = M_LATEST_TIME_MAX)
    private String latestTime;

    @ApiModelProperty(notes = N_PUNCH_COUNTS, example = E_PUNCH_COUNTS)
    private Integer punchCounts;

    @ApiModelProperty(notes = N_WORK_TIME_MINUTE, example = E_WORK_TIME_MINUTE)
    private Integer workTimeMinute;

    @ApiModelProperty(notes = N_HIS_ATTEND_STATUS, example = E_HIS_ATTEND_STATUS)
    private Integer hisAttendStatus;

    @ApiModelProperty(notes = N_OVERTIME_STATUS, example = E_OVERTIME_STATUS)
    private Integer overtimeStatus;

    @ApiModelProperty(notes = N_MINUTES, example = E_MINUTES)
    private Integer minutes;


}

